<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class FakeAssistant extends Model
{
    use HasFactory, SoftDeletes;

    protected $fillable = [
        'avatar', 'name', 'hour_price', 'fake_assistant_type_id', 'pictures',
        'real_name', 'birthday', 'age', 'phone', 'character', 'constellation', 'address', 'interest', 'hobby',
        'relationship', 'height', 'weight', 'bust', 'waist', 'hip', 'skin', 'communication', 'emotion', 'love',
        'family', 'job', 'income', 'menstruation', 'body', 'experience',
    ];

    protected $casts = [
        'pictures' => 'array',
    ];

    public function type()
    {
        return $this->belongsTo(FakeAssistantType::class, 'fake_assistant_type_id');
    }
}
